package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.infos.SimpleTaskTester;
import org.example.entity.system.User;
import org.example.entity.task.AttackTask;

import java.util.List;

/**
 * @author 魏锴
 * @description 针对表【tb_task_attack】的数据库操作Mapper
 * @createDate 2024-01-11 18:23:57
 * @Entity org.example.entity.task.AttackTask
 */
public interface AttackTaskMapper extends BaseMapper<AttackTask> {
    boolean insertTask(AttackTask attackTask);

    boolean updateTask(AttackTask attackTask);

    boolean deleteTask(int id);
    AttackTask getAttackById(int id);

    List<AttackTask> getTaskList();

    boolean publishTask(int id);

    List<SimpleTaskTester> getTesters(int task_id);

    boolean insertTester(@Param("task_id") int task_id, @Param("user_id") int user_id);

    boolean deleteTester(int id);

    boolean isExited(int id);//测试任务关联是否存在

    List<User> getTesterInfo();
}




